@import "../../styles/theme.scss";
@import "~taro-ui/dist/style/components/tag.scss";
@import "~taro-ui/dist/style/components/activity-indicator.scss";
@import '~taro-ui/dist/style/components/loading.scss';
// @import '~taro-ui/dist/style/components/loading.scss';
// @import "~taro-ui/dist/style/components/search-bar.scss";
@import "~taro-ui/dist/style/components/button.scss";
@import "~taro-ui/dist/style/components/icon.scss";
@import "~taro-ui/dist/style/components/divider.scss";
// @import "../../styles/animate.scss";
@keyframes scale-up {
  0% {
    opacity: 0;
    transform: scale(.2)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes scale-up2 {
  0% {
    opacity: 0;
    transform: scale(.2)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes jackInTheBox {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }

  50% {
    transform: rotate(-10deg);
  }

  70% {
    transform: rotate(3deg);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomInLeft {
  from {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  60% {
    opacity: 1;
    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomInRight {
  from {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  60% {
    opacity: 1;
    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
  to {
    opacity: 1;
  }
}

@keyframes flipInYRight {
  from {
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    transform: perspective(400px);
    opacity: 1;
  }
}

@keyframes flipInYLeft {
  from {
    transform: perspective(400px) rotate3d(0, 1, 0, -90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(0, 1, 0, 20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(0, 1, 0, -10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(0, 1, 0, 5deg);
  }

  to {
    transform: perspective(400px);
    opacity: 1;
  }
}

@keyframes bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
  }

  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }

  75% {
    transform: translate3d(-10px, 0, 0);
  }

  90% {
    transform: translate3d(5px, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.bounceInLeft {
  animation-name: bounceInLeft;
}


@keyframes bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
  }

  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }

  75% {
    transform: translate3d(10px, 0, 0);
  }

  90% {
    transform: translate3d(-5px, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animation-fadeIn {
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.animation-scale-up {
  animation-name: scale-up;
  animation-duration: .5s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.animation-zoom-in-left {
  // animation-name: zoomInLeft;
  // animation-name: rotateInDownLeft;
  // animation-name: flipInYLeft;
  animation-name: bounceInLeft;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.animation-zoom-in-right {
  // animation-name: zoomInRight;
  // animation-name: rotateInDownRight;
  // animation-name: flipInYRight;
  animation-name: bounceInRight;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

// .animate{
//   @extend .bounce;
//   animation-fill-mode : forwards ;
//   -webkit-animation-fill-mode : forwards ;
//   animation-duration:.3s;
// }

.downText {
  margin-left: 24px;
}

.cate_item-masonry {
  width: 100%;
  display: flex;
  flex-wrap: wrap;

  .cate_item-masonry-item {
    width: 50%;
  }
}

.scroll-box {
  overflow: hidden;
  position: relative;
  overflow-anchor: auto;
  -webkit-overflow-scrolling: touch
  // background: #f4f4f4;
}

// .dragUpdataPage{height: 50vh;position: relative;overflow: hidden;
//   .downDragBox{
//       width: 100%;
//       top: 0px;
//       display: flex;
//       overflow: hidden;
//       justify-content: center;
//       align-items: center;
//       font-size: 30px;
//       position: absolute;
//   }
//   .upDragBox{
//       bottom: 0px;
//       width: 100%;
//       display: flex;
//       overflow: hidden;
//       justify-content: center;
//       align-items: center;
//       font-size: 30px;
//       position: absolute;
//   }
//   .dragUpdata{width: 100%;position: absolute;}
//   .downText{margin-left: 20px;}
// }
.cate__item-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 32px 12px 0;
}

.cate__item-wrapper-vertical {
  display: block;
  margin-bottom: 24px;
  padding-top: 0;
  margin-top: 0;
  // padding-bottom: 0;
}

// .cate__item-wrapper-vertical:nth-child(2n+1){
//   padding-right: 12px;
// }
// .cate__item-wrapper-vertical:nth-child(2n){
//   padding-left: 12px;
// }
.cate__vertial {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 24px;
  // margin: 0 -32px;
}

.cate__item-horizontal {
  background-color: #fff;
  width: 100%;
  // height: 220px;
  padding: 12px 24px;
  border-radius: 32px;
  overflow: hidden;
  // box-shadow: 0 0 14px 0 rgba(0,0,0,.1);
  display: flex;
  box-sizing: border-box;
  min-width: 0;

  .cate__item-left {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;

    .cate__item-img {
      width: 200px;
      height: 200px;
      border-radius: 32px;
    }
  }

  .cate__item-right {
    flex: 1;
    padding-left: 16px;
    // display: flex;
    // flex-direction: column;
    min-width: 0;
    // justify-content: space-between;
  }

  .cate__item-title {
    display: block;
    // @include text-ellipsis();
    @include text-ellipsis();
    color: $dark;
    font-weight: bold;
    // font-weight: bold;
    // height: 40px;
    line-height: 36px;
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 24px;
  }

  .cate__item-content {
    // font-size: 24px;
    // @include lamp-clamp(2);
    color: $primary-color;
    margin-bottom: 6px;
  }

  .cate__item-content-empty {
    height: 46px;
  }

  .cate__item-desc {
    font-size: 22px;
    line-height: 26px;
    color: $text-color-light;
    @include lamp-clamp(6);
  }
}

.cate__item-vertical {
  // padding: 0 32px;
  // height: 220px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 24px;
  overflow: hidden;
  // box-shadow: 0 0 14px 0 rgba(0,0,0,.1);
  .cate__item-vertical-top {
    width: 100%;

    .cate__item-img {
      width: 100%;
      // height: 250px;
      border-radius: 24px;
      // border-bottom-left-radius: 0;
      // border-bottom-right-radius: 0;
    }
  }

  .cate__item-vertical-middle {
    width: 100%;
  }

  .cate__item-title {
    padding: 0 12px;
    display: block;
    @include text-ellipsis();
    color: $dark;
    font-weight: 700;
    // font-weight: bold;
    height: 24px;
    line-height: 24px;
    margin-top: 6px;
    // margin-bottom: 8px;
    font-size: 24px;
  }

  .cate_item-tag {
    padding: 0 12px;
    margin-top: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .at-tag {
      display: block;
      margin-bottom: 8px;
    }
  }

  .cate_item-jiange {
    height: 12px;
  }

  .cate__item-desc {
    padding: 0 12px;
    font-size: 22px;
    line-height: 26px;
    color: $text-color-light;
    @include lamp-clamp(3);
    margin-bottom: 12px;
  }

  .cate__item-content {
    font-size: 20px;
    @include lamp-clamp(2);
    color: $primary-color;
  }
}

.list-page {
  display: flex;
  flex-direction: column;
  background: #fff;

  .list-top {
    display: flex;
    background: #fff;
    // height: 60px;
    // input{
    //   width: 320px;
    // }
    // .list-label{
    //   height: 30Px;
    //   line-height: 30Px;
    //   padding: 6px 15x;
    // }
    at-search-bar {
      flex: 1;
    }

    .at-search-bar__action {
      background: $primary-color;
    }
  }

  .list-wrapper {
    flex: 1;
    // background-color: #ebebeb;
    // background: #fffdfd;
    min-height: 0;
  }
}

:host {
  .at-tag {
    margin-right: 10px;
  }
}

.at-tag {
  margin-right: 10px;
}

.list-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px 0 36px;
  height: 80px;
  line-height: 80px;
  font-size: 30px;
  color: $dark;

  .list-tab-left {
    display: flex;
    align-items: center;
    font-size: 30px;

    .list-tab-left-bold {
      font-weight: 700;
      font-size: 34px;
      vertical-align: baseline;
    }
  }

  .list-tab-sort {
    // color: #ea5555;
    // font-size: 30px;
  }

  .list-tab-right {
    display: flex;
    align-items: center;
  }

  .list-tab-right-mode {
    margin-right: 56px;
    color: $dark;
    font-weight: bold;

    .icon {
      font-size: 44px;
    }
  }

  .at-icon {
    margin-left: 24px;
  }
}

.list-tab-dropdown {
  .van-dropdown-menu__title {
    font-size: 16px;
    color: red;
  }
}

.list-tab-dropdown-title {
  .van-dropdown-menu__title {
    font-size: 16px;
    color: red;
  }
}

.list-tab-dropdown-title {
  color: red;
}

.list_bottom {
  height: 80px;
  box-sizing: border-box;

  .no-more {
    padding: 0 24px;
  }

  .at-divider {
    height: 80px;
  }

  .upDragBox {
    width: 100%;
    text-align: center;
    height: 80px;
    line-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

// .show-all{
//   text-align: center;
//   margin: 0 auto;
//   color: #dcdcdc;
//   font-size: 20px;
// }
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}
